package model

import "gorm.io/gorm"

type Article struct {
	gorm.Model
	Title     string `gorm:"type:varchar(20)" json:"title"`
	Content   string `gorm:"type:varchar(20)" json:"content"`
	LikeCount int    `gorm:"type:int" json:"like_count"`
}
type Favorite struct {
	gorm.Model
	ArticleID uint    `gorm:"type:int" json:"article_id"`
	Article   Article `json:"article"`
}
